package com.android.interfata;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class TabHostdesters extends Activity
{

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
   {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tabhost);


        /*           tabHost fictiv             */
        ImageView img0 = (ImageView) findViewById(R.id.img0);
        ImageView img1 = (ImageView) findViewById(R.id.img1);
        ImageView img2 = (ImageView) findViewById(R.id.img2);
        TextView text0 = (TextView) findViewById(R.id.text0);
        TextView text1 = (TextView) findViewById(R.id.text1);
        TextView text2 = (TextView) findViewById(R.id.text2);
        
        img0.setOnClickListener(new View.OnClickListener()
        {
			
			public void onClick(View v) 
			{
				Intent intent = new Intent(getApplicationContext(), InterfActivity.class);
				intent.putExtra("activity", 0);
				intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION );
				startActivity(intent);
			}
		});
        text0.setOnClickListener(new View.OnClickListener()
        {
			
			public void onClick(View v) 
			{
				Intent intent = new Intent(getApplicationContext(), InterfActivity.class);
				intent.putExtra("activity", 0);
				intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION );
				startActivity(intent);
			}
		});
        
        img1.setOnClickListener(new View.OnClickListener()
        {
			
			public void onClick(View v) 
			{
				Intent intent = new Intent(getApplicationContext(), InterfActivity.class);
				intent.putExtra("activity", 1);
				intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION );
				startActivity(intent);
			}
		});
        text1.setOnClickListener(new View.OnClickListener()
        {
			
			public void onClick(View v) 
			{
				Intent intent = new Intent(getApplicationContext(), InterfActivity.class);
				intent.putExtra("activity", 1);
				intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION );
				startActivity(intent);
			}
		});
        
        img2.setOnClickListener(new View.OnClickListener()
        {
			
			public void onClick(View v) 
			{
				Intent intent = new Intent(getApplicationContext(), InterfActivity.class);
				intent.putExtra("activity", 2);
				intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION );
				startActivity(intent);
			}
		});
        text2.setOnClickListener(new View.OnClickListener()
        {
			
			public void onClick(View v) 
			{
				Intent intent = new Intent(getApplicationContext(), InterfActivity.class);
				intent.putExtra("activity", 2);
				intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION );
				startActivity(intent);
			}
		});

        /*           end tabHost fictiv             */

   }
}
